<extend name="Layout:layout_dialog" />
<block name="body_main">
    <div class="grid-parent xsui-page-header">
        <div class="grid-60 mobile-grid-60 grid-parent">
            <a href="{:U('promotion_goods_delete','pid=varkey&promid='.$search['promid'])}" class="xsui-btn ui-state-default xsui-lnk-remove-multi"><i class="fa fa-remove"></i>批量删除</a>
        </div>
        <div class="grid-40 mobile-grid-40 grid-parent xsui-text-right">
            <a href="#" class="xsui-btn ui-state-default xsui-lnk-refresh"><i class="fa fa-refresh"></i>刷新</a>
            <span class="xsui-input-group">
                <form method="get">
                    <input type="text" name="search_key" value="{$search.search_key}" placeholder="标题/型号" /><button type="submit" class="ui-state-default"><i class="fa fa-search"></i>搜索</button>
                    <input type="hidden" name="promid" value="{$search.promid}" />
                </form>
            </span>
        </div>
    </div>
    <div id="grid-container">
        {$content}
    </div>
</block>
<block name="body_after">    
    <script src="__THEME__Script/jquery-togglelink-1.0/jquery-togglelink-1.0.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            // 网页页面视图初始化 2015-10-17 SoChishun Added.
            gridPage.ui_init();
            // 状态显示处理 2016-1-18 SoChishun Added.
            // 如：<td class="status"><a href="AddonU('change_status','id='.$vo['id'].'&status=varstatus')" title="点击隐藏" data-value="$vo.status" class="xsui-success"><i class="fa fa-check fa-fw"></i></a></td>
            $('td.status a').togglelink();
            // 动态更改排序 2015-10-24 SoChishun Added.
            $('td.sort input').blur(function () {
                var $input = $(this);
                change_sort($input);
            })
            //ajax_combobox({selector: 'select[name="category_id"]', def_option: '请选择类别'});
        })
    </script>
</block>